#read all keys
import pickle,pprint

#pickle data and save

fKey2ID = open('Key2ID', 'r')
pickleKey2ID = fKey2ID.read()
Key2ID = pickle.loads(pickleKey2ID)
fKey2ID.close()


fID2Key = open('ID2Key', 'r')
pickleID2Key = fID2Key.read()
ID2Key = pickle.loads(pickleID2Key)
fID2Key.close()

pprint.pprint(Key2ID)
pprint.pprint(ID2Key)


#printed nicer
print "Key\t\tID"
for li in list(Key2ID):
    print li+'\t\t'+str(Key2ID[li])
